<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
     <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
    margin-top: 4px;
}
        .note-editable{height: 150px}
      .cb_box{display: none;}
      .activeA{color:red;}
      .cbActive{display: block;}
      .tdMax{min-width: 60px;max-width: 120px;}
      .textEff{border:0;background-color: #efffff;width: 200px}
      .textSomeTd{min-width: 160px;width: 160px;}
    </style>
</head>

<body style="color:#333;padding:3px;" onload="resize();" onresize="resize();">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color padding-10">经销商合同管理--添加合同</h1>
    </div>
    <!-- 标题 -->
    <div class="row-margin-top">
 		<form action="" class="form-inline">
			  <table class="table-bordered table t_table">
			  <tr class="info">
				<th colspan="4" class="font-bold">经销商基本信息</th>
			  </tr>
           <tr>
            <td  class="text-right textSomeTd"><label for="" class="form-label" >经销商<span class="colorRed">*</span>:</label></td>
            <td colspan="3"><input type="text" class="form-control" name="" placeholder="请输入关键字或空格查询"><a href="javascript:;">选择</a><br>
			温馨提示：如果经销商名称没有列示，请先申请开户！<a href="../custom6ToDetail.html">点击立即开户申请</a>
            </td>
            </tr>
            <tr>
			 <td  class="text-right textSomeTd"><label for="" class="form-label" >经销商编号:</label></td>
			 <td><input type="text" name="" readonly class="textEff"></td>
			  <td style="min-width: 160px;width: 160px" class="text-right"><label for="" class="form-label" >合作年限:</label></td>
			 <td><input type="text" name="" class="textEff" readonly></td>
            </tr>
            <tr>
		     <td class="text-right textSomeTd"><label for="" class="form-label" >渠道类型:</label></td>
			 <td><input type="text" name="" class="textEff" readonly></td>
			  <td style="min-width: 160px;width: 160px" class="text-right"><label for="" class="form-label" >营业地址类型:</label></td>
			 <td>
				 <label class="radio-inline">
                      <input type="radio" name="pcx" id="inlineRadio1" value="option1">省级
                </label>
                 <label class="radio-inline">
                      <input type="radio" name="pcx" id="inlineRadio2" value="option2">市级
                </label>
                   <label class="radio-inline">
                      <input type="radio" name="pcx" id="inlineRadio3" value="option3">县级
                </label>
			 </td>
            </tr>
            <tr>
			<td class="text-right textSomeTd"><label for="" class="form-label" >营业地址<span class="colorRed">*</span>:</label></td>
            <td colspan="3">
              <div class="form-group" style="margin:2px 0">
				省：<select name="" id="" class="form-control">
					<option value="0">请选择</option>
				</select>
				市：<select name="" id="" class="form-control">
					<option value="0"></option>
				</select>
				县或区：<select name="" id="" class="form-control">
					<option value="0"></option>
				</select>
              </div><br>
				<div class="form-group" style="margin:2px 0">
					详细地址：<input type="text" class="form-control" name="" style="min-width: 240px;">
				</div>
            </td>
            </tr>
          </table>
           <table class="table-bordered table t_table">
           	 <tr class="info">
				<th colspan="2" class="font-bold">合同名称及编号：</th>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >合同名称:</label></td>
				<td class="font-bold">广州市汇佳嘉贸易有限公司- <input type="text" name="" class="form-control" style="">年合同</td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >合同编号:</label></td>
				 <td><input type="text" name="" class="textEff" readonly></td>
			  </tr>
           </table>
             <table class="table-bordered table t_table">
           	 <tr class="info">
				<th colspan="4" class="font-bold">授权信息：</th>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >合同有效期: <span class="colorRed">*</span></label></td>
				<td>
					 <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="width:120px;display: inline-block;" name="">
           </div>
            <div class="form-group">
                至
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="width:120px;display: inline-block;" id="end" name="">
           </div>
				</td>
				<td style="min-width: 200px;width: 200px" class="text-right"><label for="" class="form-label" >合同销售目标:</label></td>
				 <td><input type="text" name="" class="textEff" readonly></td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >预算费用目标<br>(万元):</label></td>
				 <td><input type="text" name="" class="textEff" readonly></td>
				 <td style="min-width: 200px;width: 200px" class="text-right"><label for="" class="form-label" >目标费用率:</label></td>
				 <td><input type="text" name="" class="textEff" readonly></td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >授权品牌<span class="colorRed">*</span>:</label></td>
				<td colspan="3"><input type="text" class="form-control" name="" placeholder="请输入关键字或空格查询"><a href="javascript:;">选择</a></td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >授权品类<span class="colorRed">*</span>:</label></td>
				<td colspan="3"><input type="text" class="form-control" name="" placeholder="请输入关键字或空格查询"><a href="javascript:;">选择</a></td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >经销类型:</label></td>
				<td colspan="3">
					<label class="radio-inline">
                	     <input type="radio" checked name="agency" id="agency1" value="optiona1">区域型经销
                	</label>
                	 <label class="radio-inline">
                	     <input type="radio" name="agency" id="agency2" value="optiona2">系统型经销
                	</label>
				</td>
			  </tr>
			  <tr>
				<td class="text-right textSomeTd"><label for="" class="form-label" >授权区域<span class="colorRed">*</span>:</label></td>
				<td colspan="3" >
				<div class="form-group" id="sready">
				   <input type="text" class="form-control" name="" style="background: #fff" readonly><br><a href="javascript:;">选择</a>
				</div>
				<div class="form-group" id="swork" style="display: none;">
					<input type="text" class="form-control" name="">
				</div>
				</td>
			  </tr>
           </table>
       <table class="table-bordered table " id="re_table">
          <tr>
            <th class="info font-bold">销售与预算目标分解(单位:万元)</th>
          </tr>
          <tr>
            <td class="changeBtn">
            <button type="button" class="btn btn-info btn-outline">默认</button>
            <button type="button" class="btn btn-info btn-outline">按品牌</button> 
            <button type="button" class="btn btn-info btn-outline">按品类</button> 
            <button type="button" class="btn btn-info btn-outline">按系列</button> 
            <button type="button" class="btn btn-info btn-outline">自定义</button> 
             </td>
          </tr>
          <tr>
            <td class="showInfo" style="padding: 2px;">
              <div class="cb_box">
                <table class="table table-bordered text-center" style="margin: 0">
                    <tr>
                      <td rowspan="2">时间</td>
                      <td >销售(销售)目标</td>
                      <td>预算(费用)目标</td>
                    </tr>
                    <tr>
                      <td>小计</td>
                      <td>小计</td>
                    </tr>
                    <tr>
                      <td class="dateShow"></td>
                      <td><input type="text" name="" class="form-control"></td>
                      <td><input type="text" name="" class="form-control"></td>
                    </tr>
                    <tr>
                      <td>总计</td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                    </tr>
                </table>
              </div>
               <div class="cb_box">
                  <table class="table table-bordered text-center" style="margin: 0">
                   <tr>
                      <th rowspan="2" style="max-width: 80px;min-width: 50px;">时间</th>
                      <th colspan="4" id="xs_deriction" class="text-center">销售(销量)目标</th>
                      <th colspan="4" id="ys_deriction" class="text-center">预算(费用)目标</th>
                   </tr>
                   <tr>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">小计</td>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">阿华田<a href="javascript:;" class="btn btn-white deltd">删除</a></td>
                    <td style="min-width:60px;">小计</td>
                   </tr>
                   <tr>
                      <td class="dateShow"></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax"></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                    
                   </tr>
                    <tr>
                      <td>总计</td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                      <td><input type="text" name="" class="form-control tdMax" readonly></td>
                    </tr>
                  </table>
              </div>
               <div class="cb_box">
                <table class="table table-bordered text-center" style="margin: 0">
                    <tr>
                      <td rowspan="2">时间</td>
                      <td >销售(销售)目标</td>
                      <td>预算(费用)目标</td>
                    </tr>
                    <tr>
                      <td>小计</td>
                      <td>小计</td>
                    </tr>
                    <tr>
                      <td class="dateShow"></td>
                      <td><input type="text" name="" class="form-control"></td>
                      <td><input type="text" name="" class="form-control"></td>
                    </tr>
                    <tr>
                      <td>总计</td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                    </tr>
                </table>
              </div>
               <div class="cb_box">
                 <table class="table table-bordered text-center" style="margin: 0">
                    <tr>
                      <td rowspan="2">时间</td>
                      <td >销售(销售)目标</td>
                      <td>预算(费用)目标</td>
                    </tr>
                    <tr>
                      <td>小计</td>
                      <td>小计</td>
                    </tr>
                    <tr>
                      <td class="dateShow"></td>
                      <td><input type="text" name="" class="form-control"></td>
                      <td><input type="text" name="" class="form-control"></td>
                    </tr>
                    <tr>
                      <td>总计</td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                      <td><input type="text" name="" class="form-control" readonly></td>
                    </tr>
                </table>
              </div>
               <div class="cb_box">
                as5
              </div>
            </td>
          </tr>
        </table>
          <table class="table-bordered table t_table">
             <tr class="info">
        <th colspan="4" class="font-bold">合同提交人信息及提交时间：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >合同提交人:</label></td>
        <td><input type="text" name="" class="textEff" readonly></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >合同提交时间:</label></td>
        <td><input type="text" name="" class="textEff" readonly></td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >提交人所在部门:</label></td>
        <td><input type="text" name="" class="textEff" readonly></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >提交人联系方式:</label></td>
        <td><input type="text" name="" class="textEff" readonly></td>
        </tr>
           </table>
      <table class="table-bordered table t_table">
      <tr class="info">
        <th colspan="4" class="font-bold">经销商财务信息：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >法定代表人<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control" id="legal_people"></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >法人固定电话:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >法人手机:</label></td>
        <td><input type="text" name="" class="form-control"></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >法人电子邮箱:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
         <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >纳税资格:</label></td>
        <td>
            <label class="radio-inline">
                       <input type="radio" checked name="taxAllow" id="agency1" value="f1">一般纳税人
                  </label>
                   <label class="radio-inline">
                       <input type="radio" name="taxAllow" id="agency2" value="f2">小规模纳税人
                  </label>
        </td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >税号<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
        <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >开户行<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control"></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >账号<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
         <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >邮寄地址<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control" id="legal_address"></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >邮编<span class="colorRed">*</span>:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
         <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >财务联系人:</label></td>
        <td><input type="text" name="" class="form-control"></td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >财务联系电话:</label></td>
        <td><input type="text" name="" class="form-control"></td>
        </tr>
        <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >财务电子邮箱:</label></td>
           <td colspan="3">
           <input type="text" name="" class="form-control" style="margin-right: 25%;">
            <button class="btn btn-info" type="button">同法人联系方式</button>
            <button class="btn btn-info" type="button" style="margin: 0 20px" id="arti_legal">签署人为法人</button>
           </td>
        </tr>
           </table>
        <table class="table-bordered table t_table">
          <tr class="info">
            <th colspan="4" class="font-bold">业务联系资料：</th>
          </tr>
          <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系人<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系固定电话<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系手机<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系传真<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >收货单位<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >收货地址<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >收货人<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >收货人电话<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
      </table>
         <table class="table-bordered table t_table">
          <tr class="info">
            <th colspan="4" class="font-bold">合同其他信息：</th>
          </tr>
          <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >合同签署时间<span class="colorRed">*</span>:</label></td>
            <td>
               <input id="startDate" class="form-control layer-date" name="">
            </td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >我方签署人<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"><a href="javascript:;"></a></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control" id="thislegal_people"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人职位<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人电话<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人邮箱<span class="colorRed">*</span>:</label></td>
            <td><input type="text" name="" class="form-control"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人地址<span class="colorRed">*</span>:</label></td>
            <td colspan="3"><input type="text" name="" class="form-control" id="thislegal_address"></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >是否为特殊合同<span class="colorRed">*</span>:</label></td>
            <td colspan="3">
                   <label class="radio-inline">
                       <input type="radio" name="ts" id="is_ok" value="is_ok">是
                  </label>
                   <label class="radio-inline">
                       <input type="radio" checked name="ts" id="is_no" value="is_no">否
                  </label>
            </td>
          </tr>
      </table>
       <table class="table-bordered table" id="constructt" style="display: none;">
          <tr class="info">
            <th class="font-bold">特殊条款备注(如是特殊合同则此项必填)：</th>
          </tr>
          <tr>
            <td>
                 <div class="ibox float-e-margins" style="margin-bottom: 0">
                    <div class="ibox-content no-padding">

                        <div class="summernote">
                           
                        </div>

                    </div>
                </div>
            </td>
          </tr>
        </table>
       <table class="table-bordered table" id="constructg">
          <tr class="info">
            <th class="font-bold">合同概述：</th>
          </tr>
          <tr>
            <td>
                 <div class="ibox float-e-margins" style="margin-bottom: 0">
                    <div class="ibox-content no-padding">

                        <div class="summernote">
                           
                        </div>

                    </div>
                </div>
            </td>
          </tr>
          <tr>
            <td>温馨提示:本编辑不支持复杂表单提交，复杂表单请以附件形式提交</td>
          </tr>
          <tr>
            <td>
                <p style="background: yellow">注意事项：提交合同必须提供①营业执照副本扫描件②税务登记证副本扫描件③组织机构代码证副本扫描件。如是特殊合同则必须提交合同原件扫描件。可以为附件提交。如果不提交或者提交不全则合同有可能不会被通过。</p>
            </td>
          </tr>
          <tr>
            <td>
              <div class="form-group" style="margin:20px 10px 20px 20px">
              <input type="file" id="exampleInputFile">
               <p class="help-block" style="color:#1295d2">注：最多上传15个文件，每个文件小于50M,支持格式：</p>
               <p class="help-block" style="color:#1295d2">jpg,bnp,gif,png,jpeg,tif,raw,doc,docx,xls,xlsx,ppt,pptx,txt,pdf,rar,zip,mp4,avi,rmvb,rm,mid,3gp,AVI,3GP,,mpg,mp3,wma,wav</p>
              </div>
            </td>
          </tr>
        </table>
       <div class="row sub_btn" style="width:100%;text-align:center;padding: 20px 0">
        <input type="button" class="btn btn-success" value="保存为草稿">
        <input type="button" class="btn btn-info" value="保存并提交流程">
        <input type="button" class="btn btn-warning" value="返回" onclick="back()">
    </div>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/summernote/summernote.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/summernote/summernote-zh-CN.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        $(document).ready(function () {

            $('.summernote').summernote({
                lang: 'zh-CN'
            });

          /*经销类型选择*/
            $("input:radio[name=agency]").click(function(){
            	if($("#agency1").prop("checked")!=true){
                 $("#swork").show();
                 $('#sready').hide();
            }else{
              $("#sready").show();
                 $('#swork').hide();
            };
            });


            /*是否为特殊合同*/
             $("input:radio[name=ts]").click(function(){
              if($("#is_no").prop("checked")!=true){
                 $("#constructt").show();
            }else{
              $("#constructt").hide();
            };
            });

        /*销售与预算目标分解*/
        $(".changeBtn button").click(function(){
           if($("#start").val()==""){
              sweetAlert("","请选择合同有效开始时间","error")
           }else if($("#end").val()==""){
             sweetAlert("","请选择合同有效结束时间","error")
           }else{
               var $index = $(this).index();
            $(this).addClass("activeA")
                .siblings().removeClass("activeA");

            $(".showInfo").find(".cb_box").eq($index).addClass("cbActive")
                .siblings().removeClass("cbActive");
              var str=$("#start").val().slice(0,7);
                 str=str.replace('/','年')
                 $(".dateShow").html(str+"月");
           }
        })

        /*签署人为法人按钮*/
        $("#arti_legal").click(function(event){
          var $legal_people    = $("#legal_people");
          var $legal_address   = $("#legal_address");
          var $thislegal_people= $("#thislegal_people");
          var $thislegal_address= $("#thislegal_address");
          var $legal_peopleVal  = $legal_people.val();
          var $legal_addressVal  = $legal_address.val();
          if($legal_peopleVal==""){
            sweetAlert("","法定代表人不能为空！","error")
          }else if($legal_addressVal==""){
             sweetAlert("","法定邮寄地址不能为空！","error")
          }else{
              $thislegal_people.val($legal_peopleVal)
              $thislegal_address.val($legal_addressVal)
          }

        
        })
        
        });
          laydate({
            elem: '#startDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
            event: 'focus' //响应事件。如果没有传入event，则按照默认的click
        });
          //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        function back(){
          history.go(-1);
        }
          function resize() {
              var b_width=$(document).width();    //获取table宽度
            var width = $("#re_table").width() ;
           
             if(width>b_width){
                $(document).width(width);     //设置浏览器宽度
               $("body").css("overflow-x","hidden")
             }else{
                $("body").css("overflow-x","auto")
              
             }
        }
    </script>
</body>

</html>
